# 测试代码
from pyecharts.charts import Map
from pyecharts.options import TitleOpts

map = Map()
# 只测试宁夏和青海
test_data = [("宁夏回族自治区", 77), ("青海省", 18)]
map.add("测试", test_data, "china")
map.set_global_opts(title_opts=TitleOpts(title="宁夏青海测试"))
map.render("test.html")